<ul class="articles list-group">
    <?php foreach($articles as $article): ?>
    <li class="list-group-item clearfix">
        <h1><?php echo $article['name']; ?></h1>
        <div class="detail">
            <img class="pull-left" src="<?php echo $article['image']; ?>" width="150" height="120" />
            <div class="summary">
                <?php echo $article['summary']; ?>
            </div>
            <a href="index.php?r=articles/detail&id=<?php echo $article['id']; ?>" class="btn btn-primary">Xem tiếp <i class="glyphicon glyphicon-share-alt"></i></a>
        </div>
    </li>
    <?php endforeach; ?>
    <li class="list-group-item text-center">
        <?php echo $pagination; ?>
    </li>
</ul>